<div class="nav nav-main">
      <ul class="container">
          <li class="<?php include_slot('index'); ?>"><a href="#">首页</a></li>
        <li class="<?php include_slot('article'); ?>"><a href="<?php echo url_for('article/index'); ?>">课程</a></li>
        <li><a href="#">测评</a></li>
        <!--<li><a href="#">活动</a></li>-->
        <li><a href="#">社区</a></li>
        <li class="pull-right">
            <?php if($sf_user->isAuthenticated()): ?>
            您好，<?php echo $sf_user->getAttribute('nick_name',$sf_user->getAttribute('phone')); ?>，<a href="<?php echo url_for('user/logout'); ?>">退出</a>
            <?php else: ?>
            <a href="<?php echo url_for('user/login'); ?>">登录</a>|<a href="<?php echo url_for('user/reg'); ?>">注册</a>
            <?php endif; ?>
        </li>
      </ul>
    </div>